# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine-conf
pkgver=3.17.1
pkgrel=0
pkgdesc="Alpine configuration management scripts"
url="https://git.alpinelinux.org/alpine-conf/about"
arch="all"
license="MIT"
depends="openrc>=0.24.1-r6 busybox>=1.26.1-r3"
checkdepends="kyua"
source="https://gitlab.alpinelinux.org/alpine/alpine-conf/-/archive/$pkgver/alpine-conf-$pkgver.tar.gz
	"

build() {
	make VERSION=$pkgver-r$pkgrel
}

package() {
	make install PREFIX= DESTDIR="$pkgdir"
	for i in commit exclude include status update; do
		ln -s lbu "$pkgdir"/sbin/lbu_$i
	done
}

check() {
	make check
}

sha512sums="
69651480974847912c113b4d14b6949d19636fca23cc4ae8659db5396adcb1f2e567f97e04f7b2084ba7bc1c693e5055231df20ebe6ea8b38940db2ffdd4cb90  alpine-conf-3.17.1.tar.gz
"
